package com.vst.orm.search;

import java.util.ArrayList;
import java.util.Collection;

public class ExampleOptions {
	public static final int EXACT = 0;
	public static final int START = 1;
	public static final int END = 2;
	public static final int ANYWHERE = 3;
	private Collection<String> excludeProps;
	private int likeMode = 0;
	private boolean excludeNulls = true;
	private boolean excludeZeros = false;
	private boolean ignoreCase = false;

	public ExampleOptions excludeProp(String property) {
		if (this.excludeProps == null) {
			this.excludeProps = new ArrayList();
		}
		this.excludeProps.add(property);
		return this;
	}

	public Collection<String> getExcludeProps() {
		return this.excludeProps;
	}

	public ExampleOptions setExcludeProps(Collection<String> excludeProps) {
		this.excludeProps = excludeProps;
		return this;
	}

	public boolean isExcludeNulls() {
		return this.excludeNulls;
	}

	public ExampleOptions setExcludeNulls(boolean excludeNulls) {
		this.excludeNulls = excludeNulls;
		return this;
	}

	public boolean isExcludeZeros() {
		return this.excludeZeros;
	}

	public ExampleOptions setExcludeZeros(boolean excludeZeros) {
		this.excludeZeros = excludeZeros;
		return this;
	}

	public boolean isIgnoreCase() {
		return this.ignoreCase;
	}

	public ExampleOptions setIgnoreCase(boolean ignoreCase) {
		this.ignoreCase = ignoreCase;
		return this;
	}

	public int getLikeMode() {
		return this.likeMode;
	}

	public ExampleOptions setLikeMode(int likeMode) {
		this.likeMode = likeMode;
		return this;
	}
}
